﻿

using IotContract.Dtos.Servers.Pushs;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Process.Zd;
[ProtoContract]
public class ZdProcessScData:ProcessBaseData
{
    [ProtoMember(1)]
    public int EquipNum { get; set; }
    [ProtoMember(2)]
    public long EquipId { get; set; }
    [ProtoMember(3)]
    public bool Connection { get; set; }
    [ProtoMember(4)]
    public int Error { get; set; }
    /// <summary>
    /// 0-维修；1-手动；2-单机自动；3-联机自动；4-不明。
    /// </summary>
    [ProtoMember(5)]
    public int Mode { get; set; }
    /// <summary>
    /// 前叉任务号
    /// </summary>
    [ProtoMember(6)]
    public int FrontTask { get; set; }
    /// <summary>
    /// 任务状态 0-待机；1-取货中；2-取货完成；3-放货中；4-请求卸货（申请卸货）；5-放货完成；6-取货准备（回库台位）；7-召回；8-急停；9-不明；10-盘库中；11-盘库完成。
    /// </summary>
    [ProtoMember(7)]
    public int FrontCommand { get; set; }
    /// <summary>
    /// 前叉探货原位有货
    /// </summary>
    [ProtoMember(8)]
    public int FrontCargo { get; set; }
    /// <summary>
    /// 前叉载货台报警
    /// </summary>
    [ProtoMember(9)]
    public int FrontYError { get; set; }
    /// <summary>
    /// 前叉排
    /// </summary>
    [ProtoMember(10)]
    public int FrontZ { get; set; }
    /// <summary>
    /// 前叉列
    /// </summary>
    [ProtoMember(11)]
    public int FrontX { get; set; }
    /// <summary>
    /// 前叉层
    /// </summary>
    [ProtoMember(12)]
    public int FrontY { get; set; }
    /// <summary>
    /// 前叉货叉报警
    /// </summary>
    [ProtoMember(13)]
    public int FrontZError { get; set; }
    /// <summary>
    /// 调度号
    /// </summary>
    [ProtoMember(14)]
    public int DeviceCode { get; set; }
    /// <summary>
    /// 后叉任务号
    /// </summary>
    [ProtoMember(15)]
    public int BackTask { get; set; }
    /// <summary>
    /// 后叉任务状态
    /// </summary>
    [ProtoMember(16)]
    public int BackCommand { get; set; }
    /// <summary>
    /// 后叉探货原位有货
    /// </summary>
    [ProtoMember(17)]
    public int BackCargo { get; set; }
    /// <summary>
    /// 前叉载货台报警
    /// </summary>
    [ProtoMember(18)]
    public int BackYError { get; set; }
    /// <summary>
    /// 后叉排
    /// </summary>
    [ProtoMember(19)]
    public int BackZ { get; set; }
    /// <summary>
    /// 后叉列
    /// </summary>
    [ProtoMember(20)]
    public int BackX { get; set; }
    /// <summary>
    /// 后叉层
    /// </summary>
    [ProtoMember(21)]
    public int BackY { get; set; }
    /// <summary>
    /// 后叉货叉报警
    /// </summary>
    [ProtoMember(22)]
    public int BackZError { get; set; }
}
